package com.sharp.kernel.mybatis.repository.inf;

import tk.mybatis.mapper.entity.Example;

/**
 * Title: SqlCountRepository
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2022/6/8 16:04
 */
public interface SqlCountRepository<T> {

    int count(T entity);

    int count(Example example);

    boolean existedWithPrimaryKey(Object primaryKey);

    boolean existed(Example example);

}
